package com.tomcov.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.tomcov.shared.Journey;
import com.tomcov.shared.JourneyPassenger;

@RemoteServiceRelativePath("journeyPassengerService")
public interface JourneyPassengerService extends RemoteService{
	
	public JourneyPassenger addJourney(JourneyPassenger jp);
	public JourneyPassenger delete(JourneyPassenger jp);
	public List<JourneyPassenger> getJourneyByName2(String Username);
	public List<JourneyPassenger> getJourneyByName(String Username);
	public List<JourneyPassenger> getJourneyAtSameDate(Journey J);
	public JourneyPassenger delete(String id);
	public JourneyPassenger adddriver(JourneyPassenger jp);
	public JourneyPassenger getJourneyById(String journeypassidnumber);
}
